package net.bac.sbe.common.sonar.baseline.impl;

import net.bac.sbe.common.api.view.ReportView;
import net.bac.sbe.common.sonar.baseline.SonarBaseLineInformationReader;
import net.bac.sbe.common.sonar.baseline.SonarBaseLineInformationWriter;
import net.bac.sbe.common.xls.bean.ReportBean;
import net.bac.sbe.common.xls.helper.SimpleMatrixXLSProcessor;

public class XLSSonarBaseLineInformation implements SonarBaseLineInformationReader, SonarBaseLineInformationWriter {

	public ReportBean[][] getSonarBaseLineInformation(String path) {
		return SimpleMatrixXLSProcessor.readXLSToMatrix(path);
	}

	public void saveSonarBaseLineInformation(ReportView view) {
		SimpleMatrixXLSProcessor.generateXLSFromMatrix(view);
	}

}
